package com.mpw.cloud.service;

import com.mpw.cloud.dao.Paymentdao;
import com.mpw.cloud.entities.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @program:Cloud
 * @author: mpw
 * @Time: 2021/10/29  9:35
 **/
@Service
public class PaymentServiceImpl implements PaymentService{
    @Autowired
    private Paymentdao paymentdao;


    @Override
    public int create(Payment payment) {
        return paymentdao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentdao.getPaymentById(id);
    }
}
